// services
import APIService from './api.service';
import type { ResponseData } from './types';

const API_BASE_URL = import.meta.env.VITE_APP_BASE_URL;
/**
 * @description: 查询图蝇艺术家等配置api
 * @return {*}
 */
class PresetService extends APIService {
  constructor() {
    super(API_BASE_URL);
  }

  async getPaintingMenu(): Promise<ResponseData<any>> {
    return this.get(`/web/web/paintingMenu`)
      .then((response) => response?.data)
      .catch((error) => {
        throw error?.response?.data;
      });
  }
}

export default new PresetService();
